package com.java.action;

import com.java.pojo.ComDept;
import com.java.service.IDeptService;

public class DeptDetailAction {
private Integer id;
private IDeptService deptservice;
private ComDept cd;
public String execute(){
	System.out.println("deptdetail executing........");
	cd=deptservice.getDeptById(id);
	return "success";
}

public Integer getId() {
	return id;
}

public void setId(Integer id) {
	this.id = id;
}

public IDeptService getDeptservice() {
	return deptservice;
}
public void setDeptservice(IDeptService deptservice) {
	this.deptservice = deptservice;
}
public ComDept getCd() {
	return cd;
}
public void setCd(ComDept cd) {
	this.cd = cd;
}

}
